package com.goodving.guli.bt.profile.scale;

import android.bluetooth.BluetoothAdapter;

import com.goodving.guli.view.C3657a;

/**
 * Created by john on 2015/11/24.
 */
public class WeightHwInfo {
    public String address;
    public String deviceId;
    public String fwVersion;
    public String name;

    public WeightHwInfo() {
        this.address = C3657a.f18328f;
        this.name = C3657a.f18328f;
        this.fwVersion = C3657a.f18328f;
        this.deviceId = C3657a.f18328f;
    }

    public boolean isValid() {
        return this.address != null && this.address.length() > 0 && BluetoothAdapter.checkBluetoothAddress(this.address);
    }

    public String toString() {
        return "Weight info: addr = " + this.address + ", name = " + this.name + ", fw = " + this.fwVersion + ", deviceId = " + this.deviceId;
    }
}
